{{response.files.append(URL(r=request,c='static',f='processing.min.js'))}}
{{response.files.append(URL(r=request,c='static',f='processing.init.js'))}}
{{extend 'layout.html'}}

<script>
function checkall() { jQuery('input[type="checkbox"]').attr('checked',true) }
function uncheck() { jQuery('input[type="checkbox"]').attr('checked',false) }
</script>

<h1>{{=processedfile.algorithm}} for <a href="{{=url('process',processedfile.configfile)}}">{{=processedfile.configfile.filename}}</a></h1>

Created by {{=processedfile.posted_by.first_name}} {{=processedfile.posted_by.last_name}} on {{=processedfile.posted_on}}
[<a href="{{=URL(r=request,f='download',args=processedfile.vtkfile)}}">download</a> ]

<center>
<table>
  <tr>
    <td style="vertical-align: top; text-align:center">
      <h2>Real Time Visualization</h2>
      {{=obj}}
    </td>
    <td style="vertical-align: top; text-align:center">
      <h2>New High Res Snapshot</h2>
      {{=form}}
    </td>
  </tr>
  <tr>
    <td style="vertical-align: top; text-align:center" colspan="2">      
      <center>
      <form>
    {{=plugin_jqgrid(db.visualizedfile,fieldname='processedfile',fieldvalue=processedfile.id,columns=('id','status','pngfile'),col_widths={'id':110,'status':110,'pngfile':200},width=437,height=600)}}
    {{if auth.user:}}
    <input name="CheckAll" value = "Check all" onclick="checkall()" type="button">
    <input name="CheckAll" value = "Uncheck all" onclick="uncheck()" type="button">
    <input value="Delete" type="submit">
    {{pass}}
      </form>
      </center>
    </td>
  </tr>
</table>
</center>
